home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global newday, firstdayNo, numDaysInMonth, newMonth, theDate
- if the doubleClick then
- exit
- end if
- cursor(4)
- set x to the clickOn - 8 - firstdayNo + 1
- if (x > 0) and (x <= numDaysInMonth) then
- set oldBox to newday
- set newday to x
- setDelimiter("/")
- if (oldBox > 0) and (oldBox < 38) then
- set the ink of sprite (oldBox + 8 + firstdayNo - 1) to 36
- end if
- if (item 2 of theDate < newday) and (newMonth = value(item 1 of theDate)) then
- cursor(0)
- alert("Cannot chart on future days.")
- else
- set the ink of sprite the clickOn to 2
- end if
- setDelimiter()
- end if
- cursor(0)
- updateStage()
- end
-